package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_tng_ret database table.
 * 
 */
@Entity
@Table(name="per_tng_ret")
@NamedQuery(name="PerTngRet.findAll", query="SELECT p FROM PerTngRet p")
public class PerTngRet implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_TNG_RET_RETID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_TNG_RET_RETID_GENERATOR")
	private int retid;

	private String retrem;

	//bi-directional many-to-one association to PerEmaTrts
	@ManyToOne
	@JoinColumn(name="TRTSID")
	private PerEmaTrts perEmaTrt;

	//bi-directional many-to-one association to PerPmsZCls
	@ManyToOne
	@JoinColumn(name="CLSID")
	private PerPmsZCls perPmsZCl;

	//bi-directional many-to-one association to PerTngXes
	@ManyToOne
	@JoinColumn(name="XESID")
	private PerTngXes perTngXe;

	public PerTngRet() {
	}

	public int getRetid() {
		return this.retid;
	}

	public void setRetid(int retid) {
		this.retid = retid;
	}

	public String getRetrem() {
		return this.retrem;
	}

	public void setRetrem(String retrem) {
		this.retrem = retrem;
	}

	public PerEmaTrts getPerEmaTrt() {
		return this.perEmaTrt;
	}

	public void setPerEmaTrt(PerEmaTrts perEmaTrt) {
		this.perEmaTrt = perEmaTrt;
	}

	public PerPmsZCls getPerPmsZCl() {
		return this.perPmsZCl;
	}

	public void setPerPmsZCl(PerPmsZCls perPmsZCl) {
		this.perPmsZCl = perPmsZCl;
	}

	public PerTngXes getPerTngXe() {
		return this.perTngXe;
	}

	public void setPerTngXe(PerTngXes perTngXe) {
		this.perTngXe = perTngXe;
	}

}